package models;

import javax.persistence.Id;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.Query;

public class Process extends AbstractBaseModel {
	static {
        ObjectifyService.register(Process.class);
    }
	
	@Id public Long id;
	public String title;
	public String description;
	
	private Key<Focus> focus;
	
	public static Query<Process> all() {
		return getService().query(Process.class);
	}
	
	public void setFocus(Focus focus) {
		this.focus = new Key<Focus>(Focus.class, focus.id);
	}
}
